<include file="public@storage"/>
<link href="__STATIC__/storage/editable/bootstrap-editable.css" rel="stylesheet">
</head>
<body>
<div class="container body-content" style="margin-top:20px; width: 100%">
    <div class="panel panel-info" style="margin-bottom: 0.5rem">
        <div class="panel-heading"><span id="storageName">{$storageInfo[0]['name']}</span>条码查询</div>
        <input type="hidden" id="storageUuid" value="{$storageInfo[0]['uuid']}">
        <div class="panel-body">
            <div class="row">
                <div class="col-sm-12">
                    <div id="toolbar" class="btn-group">
                        <!-- 按钮触发模态框 -->
                    </div>
                    <table id="table"></table>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script>
    $(function () {
        init();
    });

    function init() {
        var url = "{:url('Query/queryDetail')}";
        var columns = [
            {
                title: '序号',
                width: 50,
                align: "center",
                valign: 'middle',
                formatter: function (value, row, index) {
                    return index + 1;
                }
            },
            {
                title: '单号',
                field: 'purchase_id',
                align: "center",
                filter: {
                    type: 'input'
                }
            },
            {
                title: '料号',
                field: 'sub_materiel_id',
                align: "center",
                filter: {
                    type: 'input'
                }
            },
            {
                title: '条码',
                field: 'reel_id',
                align: "center",
                filter: {
                    type: 'input'
                }
            },
            {
                title: '数量',
                field: 'count',
                align: "center",
                filter: {
                    type: 'input'
                }
            },
            {
                title: '厂商号',
                field: 'supplier_id',
                align: "center",
                filter: {
                    type: 'input'
                }
            },
            {
                title: '厂商名',
                field: 'company_name',
                align: "center",
                filter: {
                    type: 'input'
                }
            },
            {
                title: '时间',
                field: 'time',
                align: "center",
                filter: {
                    type: 'input'
                }
            }
        ];
        initTable(url, columns, 'server');
    }
</script>
</html>